import request from '@/utils/request'

// 查询审批申请列表
export function listApprovalInfo(query) {
  return request({
    url: '/course/ApprovalInfo/list',
    method: 'get',
    params: query
  })
}

// 查询审批申请详细
export function getApprovalInfo(id) {
  return request({
    url: '/course/ApprovalInfo/view/' + id,
    method: 'get'
  })
}

// 新增审批申请
export function addApprovalInfo(data) {
  return request({
    url: '/course/ApprovalInfo/add',
    method: 'post',
    data: data
  })
}

// 修改审批申请
export function updateApprovalInfo(data) {
  return request({
    url: '/course/ApprovalInfo/update',
    method: 'put',
    data: data
  })
}

// 删除审批申请
export function delApprovalInfo(id) {
  return request({
    url: '/course/ApprovalInfo/delete/' + id,
    method: 'delete'
  })
}
